export default function sleep(milliseconds: number): Promise<void> {
  return new Promise((resolve) => {
    const t = setTimeout(() => {
      resolve();
      clearTimeout(t);
    }, milliseconds);
  });
}
